home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / LGP250S1.ZIP / src / libgplus.5 / libgplus / tests / tfix16.exp < prev    next >
Text File  |  1992-05-06  |  1KB  |  65 lines

  1. Fix16: identities should be displayed
  2. 0 = 0
  3. .5 = 0.5
  4. -.5 = -0.5
  5. .1 = 0.100006
  6. .5 = 0.5
  7. .5 = 0.5
  8. .25 = 0.25
  9. 8192 = 8192
  10. .25 = 0.25
  11. .25 = 0.25
  12. .25 = 0.25
  13. -.25 = -0.25
  14. .1 + .5 = 0.600006
  15. .1 - .5 = -0.399994
  16. .1 * .5 = 0.0500031
  17. .1 *  3 = 0.300018
  18. .1 * -3 = -0.300018
  19. .1 / .5 = 0.200012
  20. .1 << 1 = 0.200012
  21. -.5 >> 2 = -0.125
  22. .1 == .5 = 0
  23. .1 != .5 = 1
  24. .1 > .5 = 0
  25. .5 <= -.5 = 0
  26. Fix16: range errors ignored and overflows saturated
  27. 1.1 = 0.999969
  28. .7 + .5 = 0.999969
  29. -.5 - .7 = -1
  30. .5 / .1 = 0.999969
  31. Fix32: identities should be displayed
  32. 0 = 0
  33. .5 = 0.5
  34. -.5 = -0.5
  35. .1 = 0.1
  36. .5 = 0.5
  37. .5 = 0.5
  38. .25 = 0.25
  39. 536870912 = 536870912
  40. .25 = 0.25
  41. .25 = 0.25
  42. .25 = 0.25
  43. -.25 = -0.25
  44. .1 + .5 = 0.6
  45. .1 - .5 = -0.4
  46. .1 * .5 = 0.05
  47. .1 *  3 = 0.3
  48. .1 * -3 = -0.3
  49. .1 / .5 = 0.2
  50. .1 << 1 = 0.2
  51. -.5 >> 2 = -0.125
  52. .1 == .5 = 0
  53. .1 != .5 = 1
  54. .1 > .5 = 0
  55. .5 <= -.5 = 0
  56. Fix32: range errors reported and overflows reported
  57. warning: Fix32 result out of range
  58. 1.1 = 1
  59. warning: Fix32 result out of range
  60. .7 + .5 = -0.8
  61. warning: Fix32 result out of range
  62. -.5 - .7 = 0.8
  63. warning: Fix32 result out of range
  64. .5 / .1 = 1
  65.